import request from '@/utils/request'

// 查询销售出库详情列表
export function listStoreoutDetail(query) {
  return request({
    url: '/sale/storeoutDetail/list',
    method: 'get',
    params: query
  })
}

// 查询销售出库详情详细
export function getStoreoutDetail(id) {
  return request({
    url: '/sale/storeoutDetail/' + id,
    method: 'get'
  })
}

// 新增销售出库详情
export function addStoreoutDetail(data) {
  return request({
    url: '/sale/storeoutDetail',
    method: 'post',
    data: data
  })
}

// 修改销售出库详情
export function updateStoreoutDetail(data) {
  return request({
    url: '/sale/storeoutDetail',
    method: 'put',
    data: data
  })
}

// 删除销售出库详情
export function delStoreoutDetail(id) {
  return request({
    url: '/sale/storeoutDetail/' + id,
    method: 'delete'
  })
}
